package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2017/10/18.
 */

public class MyPlan implements Parcelable {

    /**
     * data : [{"uid":1,"id":5,"content":"学业规划内容是学习学习学习","title":"一年级学业规划","time":1508307481000,"filepaht":"/6/edu//1508307480912.jpg","tid":6},{"uid":1,"id":6,"content":"内容了了了了了了了了了","title":"二年级学业规划","time":1508307678000,"filepaht":"/6/edu//1508307677885.jpg","tid":6}]
     * status : 200
     */

    private int status;
    private List<DataBean> data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private String msg;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * uid : 1
         * id : 5
         * content : 学业规划内容是学习学习学习
         * title : 一年级学业规划
         * time : 1508307481000
         * filepaht : /6/edu//1508307480912.jpg
         * tid : 6
         */

        private int uid;
        private int id;
        private String content;
        private String title;
        private long time;
        private String filepaht;
        private int tid;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        private String name;

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getFilepaht() {
            return filepaht;
        }

        public void setFilepaht(String filepaht) {
            this.filepaht = filepaht;
        }

        public int getTid() {
            return tid;
        }

        public void setTid(int tid) {
            this.tid = tid;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.uid);
            dest.writeInt(this.id);
            dest.writeString(this.content);
            dest.writeString(this.title);
            dest.writeLong(this.time);
            dest.writeString(this.filepaht);
            dest.writeInt(this.tid);
            dest.writeString(this.name);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.uid = in.readInt();
            this.id = in.readInt();
            this.content = in.readString();
            this.title = in.readString();
            this.time = in.readLong();
            this.filepaht = in.readString();
            this.tid = in.readInt();
            this.name = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeTypedList(this.data);
        dest.writeString(this.msg);
    }

    public MyPlan() {
    }

    protected MyPlan(Parcel in) {
        this.status = in.readInt();
        this.data = in.createTypedArrayList(DataBean.CREATOR);
        this.msg = in.readString();
    }

    public static final Parcelable.Creator<MyPlan> CREATOR = new Parcelable.Creator<MyPlan>() {
        @Override
        public MyPlan createFromParcel(Parcel source) {
            return new MyPlan(source);
        }

        @Override
        public MyPlan[] newArray(int size) {
            return new MyPlan[size];
        }
    };
}
